//
//  ReportPriceView.m
//  WorkNest
//
//  Created by qbm360 on 15/7/28.
//  Copyright (c) 2015年 nest. All rights reserved.
//

#import "ReportPriceView.h"

@interface ReportPriceView ()

@property (weak, nonatomic) IBOutlet UILabel *name;
@property (weak, nonatomic) IBOutlet UILabel *countAndColor;
@property (weak, nonatomic) IBOutlet UILabel *price;
@property (strong, nonatomic) IBOutlet UIView *view;

@end

@implementation ReportPriceView

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self setup];
    }
    return self;
}

- (id)initWithCoder:(NSCoder *)aDecoder
{
    self = [super initWithCoder:aDecoder];
    if(self) {
        [self setup];
    }
    return self;
}

- (void)setup
{
    [[NSBundle mainBundle] loadNibNamed:@"ReportPriceView" owner:self options:nil];
    _view.frame = self.bounds;
    [self addSubview:_view];
}

- (void)setArray:(NSArray *)array {
    _array = array;
//    self.name.text = [array valueForKey:@"color"];
//    self.countAndColor.text = [array valueForKey:@"size"];
//    self.price.text = [array valueForKey:@"quantity"];
    self.name.text = array[0];
    self.countAndColor.text = array[1];
    self.price.text = array[2];
}

@end
